<?php
/*
$config = array(
    'firm/add' => array(
        array(
            'field' => 'content',
            'label' => '律所简介内容',
            'rules' => 'required'
        ),
    ),
    'firm/update' => array(
        array(
            'field' => 'content',
            'label' => '律所简介内容',
            'rules' => 'required'
        ),
    ),
    'question/add' => array(
        array(
            'field' => 'author',
            'label' => '您的称呼',
            'rules' => 'required'
        ),
        array(
            'field' => 'title',
            'label' => '标题',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '问题内容',
            'rules' => 'required'
        )
    ),
    'question/update' => array(
        array(
            'field' => 'author',
            'label' => '您的称呼',
            'rules' => 'required'
        ),
        array(
            'field' => 'title',
            'label' => '标题',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '问题内容',
            'rules' => 'required'
        )
    ),
    'question/addreply' => array(
        array(
            'field' => 'author',
            'label' => '您的称呼',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '回复内容',
            'rules' => 'required'
        )
    ),
    'anwser/update' => array(
        array(
            'field' => 'author',
            'label' => '您的称呼',
            'rules' => 'required'
        ),
        array(
            'field' => 'a_content',
            'label' => '回复内容',
            'rules' => 'required'
        )
    ),
    'adviser/add' => array(
        array(
            'field' => 'name',
            'label' => '公司名称',
            'rules' => 'required'
        ),
        array(
            'field' => 'url',
            'label' => '公司网址',
            'rules' => 'url'
        ),
        array(
            'field' => 'content',
            'label' => '公司简介',
            'rules' => 'required'
        )
    ),
    'adviser/update' => array(
        array(
            'field' => 'name',
            'label' => '公司名称',
            'rules' => 'required'
        ),
        array(
            'field' => 'url',
            'label' => '公司网址',
            'rules' => 'required|prep_url'
        ),
        array(
            'field' => 'content',
            'label' => '公司简介',
            'rules' => 'required'
        )
    ),
    'lawyer/add' => array(
        array(
            'field' => 'name',
            'label' => '姓名',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '个人简介',
            'rules' => 'required'
        )
    ),
    'lawyer/update' => array(
        array(
            'field' => 'name',
            'label' => '姓名',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '个人简介',
            'rules' => 'required'
        )
    ),
    'header/add' => array(
        array(
            'field' => 'name',
            'label' => '姓名',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '个人简介',
            'rules' => 'required'
        )
    ),
    'header/update' => array(
        array(
            'field' => 'name',
            'label' => '姓名',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '个人简介',
            'rules' => 'required'
        )
    ),
    'news/add' => array(
        array(
            'field' => 'title',
            'label' => '标题',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '资讯内容',
            'rules' => 'required'
        )
    ),
    'news/update' => array(
        array(
            'field' => 'title',
            'label' => '标题',
            'rules' => 'required'
        ),
        array(
            'field' => 'content',
            'label' => '资讯内容',
            'rules' => 'required'
        )
    ),
    'contact/update' => array(
        array(
            'field' => 'telphone',
            'label' => '联系电话',
            'rules' => 'required'
        ),
        array(
            'field' => 'email',
            'label' => '电子邮箱',
            'rules' => 'required'
        ),
        array(
            'field' => 'address',
            'label' => '详细地址',
            'rules' => 'required'
        )
    ),
    'contact/add' => array(
        array(
            'field' => 'telephone',
            'label' => '联系电话',
            'rules' => 'required'
        ),
        array(
            'field' => 'email',
            'label' => '电子邮箱',
            'rules' => 'required'
        ),
        array(
            'field' => 'address',
            'label' => '详细地址',
            'rules' => 'required'
        )
    ),
);
*/